package com.mh.www.mh_frame.view.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.mh.www.mh_frame.R;
import com.mh.www.mh_frame.model.bean.MeetingSummaryBean;
import com.mh.www.mh_frame.model.bean.StandardBean;
import com.mh.www.mh_frame.util.DateUtil;

import java.util.List;

public class StandardAdapter extends BaseQuickAdapter<StandardBean.DataBean,BaseViewHolder> {
    @Override
    protected void convert(BaseViewHolder helper, StandardBean.DataBean item) {
        helper.setText(R.id.tv_item_title,item.getTITLE());
        helper.setText(R.id.tv_date,DateUtil.formatDateTime(item.getCREATEDATE(),DateUtil.DF_YYYY_MM_DD));
    }

    public StandardAdapter(@Nullable List<StandardBean.DataBean> data) {
        super(R.layout.item_standard,data);
    }



}
